package cn.shop.admin.mapper;

import cn.shop.admin.entity.excel.FrontUserExcel;
import cn.shop.admin.req.FrontUserQueryReq;
import cn.shop.base.MyBaseMapper;
import cn.shop.base.MyPage;
import cn.shop.transcation.detail.entity.TransactionDetail;
import cn.shop.transcation.frontUserModule.FrontUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 购物平台用户表(FrontUser)表数据库访问层
 *
 * @author jzw
 * @since 2022-02-23 09:39:05
 */
public interface FrontUserMapper extends MyBaseMapper<FrontUser> {

	List<Map<String, Object>> queryAllRole(Long id);

	MyPage<TransactionDetail> queryRecordByPage(@Param("page") MyPage<TransactionDetail> page, @Param("id") Long id);

	/**
	 * 根据玩家绑定游戏账号查询玩家信息
	 * @param page 分页信息
	 * @param user 查询条件1
	 * @param req 查询条件2
	 * @return 返回结果
	 */
	MyPage<FrontUser> queryByPlayer(@Param("page") MyPage<FrontUser> page, @Param("req") FrontUserQueryReq req);

	/**
	 * 获取导出的全部数据
	 * @author 王鹤然
	 * @date 2023/3/27 0027 下午 13:40
	 * @return java.util.List<cn.shop.admin.entity.excel.FrontUserExcel>
	*/
    List<FrontUserExcel> selectAllByExcel();
}

